package com.vc.aha_server_event.controller;

import com.vc.aha_server_event.dto.UploadResourceInfoDto;
import com.vc.aha_server_event.service.UploadResourceInfoService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
/**
* @author ShaoZhenbang
* @description
* @date 2022/4/8
*/
@RestController
@RequestMapping("/upload")
public class UploadResourceInfoController {
    @Resource
    private UploadResourceInfoService uploadResourceInfoService;


    @PostMapping("/resourceInfo")
    public void saveResourceInfo(@RequestBody @Validated UploadResourceInfoDto uploadResourceInfoDto){
        uploadResourceInfoService.saveUploadResourceInfo(uploadResourceInfoDto);
    }
}
